<?php
/**
 * Created by PhpStorm.
 * User: jwb
 * Date: 2021/4/30
 * Time: 10:10
 */

namespace App\Extensions\Actions;


use App\Models\PatentEvaluate;
use Encore\Admin\Actions\RowAction;
use Illuminate\Http\Request;

class PatentApplyAction extends RowAction
{
    public $name = '申请登记';

    /**
     * @return  string
     */
    public function href()
    {
        return admin_route('patentApplies.create', ['evaluate_id' => $this->row->id]);
    }

    public function __toString()
    {
        return $this->render();
    }
}
